package com.rockwell.maze800;

import org.opencv.core.Point;

import com.rockwell.maze800.model.LeftFirstMazeSolver;
import com.rockwell.maze800.model.Maze;
import com.rockwell.maze800.model.Robot;
import com.rockwell.maze800.model.RobotCommander;
import com.rockwell.maze800.model.RobotSensors;
import com.rockwell.maze800.views.MazeCameraView;
import com.rockwell.maze800.views.OnOrientationChangeListener;
import com.rockwell.maze800.views.OnColorBlobDetectListener;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class TeachActivity extends Activity {
	private MazeCameraView	m_mazeCameraView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_teach);
		
		m_mazeCameraView = (MazeCameraView) this.findViewById(R.id.maze_camera_view);
		m_mazeCameraView.setTeachMode(true);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.robot, menu);
		return true;
	}

	@Override
    public void onPause()
    {
        super.onPause();
        m_mazeCameraView.onDeactivated();
    }

	@Override
	public void onStop() {

		super.onStop();
		m_mazeCameraView.onDeactivated();
	}
	
	@Override
	public void onResume() {
		super.onResume();
		m_mazeCameraView.onActivated();
	}
}
